package com.wrupple.muba.catalogs.client.activity.process.impl;

import java.util.List;

import com.wrupple.muba.catalogs.client.activity.process.CatalogImportActivityProcess.ImportData;
import com.wrupple.muba.catalogs.client.activity.process.ImportProcess;
import com.wrupple.muba.catalogs.client.activity.process.state.BrowsePlaceInterpret;
import com.wrupple.muba.catalogs.client.module.services.presentation.CatalogPlaceInterpret;
import com.wrupple.muba.catalogs.domain.CatalogProcessDescriptor;
import com.wrupple.muba.common.domain.DesktopPlace;
import com.wrupple.muba.common.shared.SequentialProcess;
import com.wrupple.muba.widget.client.view.Task;

public class SimpleImportProcess<O> extends SequentialProcess<DesktopPlace, List<O>> implements
		ImportProcess<O> {

	public SimpleImportProcess(CatalogPlaceInterpret interpret, BrowsePlaceInterpret readConfiguration,Task<CatalogProcessDescriptor, ImportData> readDataToImportFromSomewehre,ImportDataHandler strategyToPersistAllData) {
		super();
		add(readConfiguration);
		add(readDataToImportFromSomewehre);
		add(strategyToPersistAllData);
		readConfiguration.setPlaceInterpret(interpret);
	}
	
	

}
